package com.zzy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/** 使用 war 包发布  */
//@ComponentScan("com.zzy")
//@EntityScan("com.zzy.model")
//@EnableCaching
//@EnableAutoConfiguration
////@EnableDiscoveryClient
////@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@SpringBootApplication
public class AppKafkaserviceWar extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(AppKafkaserviceWar.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(AppKafkaserviceWar.class);
    }
}
